/**
 * Configurion of Log4js
 */
var log4js = require('log4js');
var os=require('os');
var logFilePath;
if(os.type()=='Windows_NT'){
  logFilePath='C:/Users/wry/Documents/temp/66XiqoQu.log';
}else{
  logFilePath='logs/66xiaoqu.log';
}

log4js.configure({
  appenders: [
    { type: 'console' }
    //{
    //  type: 'file',
    //  filename: logFilePath,
    //  maxLogSize: 10000000,
    //  backups:2,
    //  category: 'normal'
    //}
  ]
});

global.logger = log4js.getLogger('normal');
logger.setLevel('DEBUG');
logger.debug('The logging file is located in:'+logFilePath);
